using ExampleMvcApplication.Models.Response.Home;

namespace ExampleMvcApplication.Views.Home
{
    public class Index : Master<IndexModel>
    {
        protected override string RenderTitleContent()
        {
            return "Home Page";
        }

        protected override string RenderMainContent(IndexModel model)
        {
            return Children._(
                h2._(model.Message),
                p._(
                    "To learn more about ASP.NET MVC visit ",
                    a.href("http://asp.net/mvc").title("ASP.NET MVC Website")._("http://asp.net/mvc")
                    ),
                p._(
                    "To learn more about SmallMvc visit ",
                    a.href("http://code.google.com/p/smallmvc/").title("SmallMvc Website")._("http://code.google.com/p/smallmvc/")
                    )
                );
        }
    }
}